
var app = getApp();
Page({
  data: {

    nowDate: '',
    startDate: '',
    returnDate: ''
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数

  },
  onReady:function(){
    // 页面渲染完成
    var myDate = new Date();
    myDate.getTime();
    var nowDate=  app.dateFormat(myDate.getTime());
    this.setData({
      nowDate: nowDate
    })
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  },
  startDateChange: function(e) {
    this.setData({
      startDate: e.detail.value
    })
  },
  returnDateChange: function(e) {
    this.setData({
      returnDate: e.detail.value
    })
  }
})